package com.woniuxy.business.controller;

import com.github.pagehelper.PageInfo;
import com.woniuxy.business.service.MessageService;
import com.woniuxy.commons.entity.Medicine;
import com.woniuxy.commons.entity.Message;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.service.MedicineService;
import com.woniuxy.commons.utils.ResponseResult;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 雷珉
 * @date 2022年06月08日 16:41
 */
@RestController
@RequestMapping("/business/test")
public class TestController {
    @Resource
    private MedicineService medicineService;

    @PostMapping("/batchFind")
    public ResponseResult<List<Medicine>> findBatch(@RequestBody int[] ids){
        return medicineService.findBatch(ids);
    }
}

